第 2 步:让我们更改.ask()命令中的提示,让用户知道他们可以做出哪些选择。

此文本将出现在用户输入答案的弹出窗口中。用户输入的任何内容都将存储在输入变量choice.

  • .ask()命令中的字符串更改为"Choose rock, paper, or scissors."
  • 点击提交接下来继续。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)